how to get output in terminal